package wordstat;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: vladimir
 * Date: 08.08.11
 * Time: 9:06
 * To change this template use File | Settings | File Templates.
 */
public class TestConnect {
    public static void main(String[] args) throws IOException {
        Document document = Jsoup.connect("http://2ip.ru:80").
                header("Accept", "text/javascript, text/html, application/xml, text/xml, */*").
                header("Connection", "keep-alive").
                header("Cookie", "IP[1312614340]=109.205.253.135; __utma=260173902.138127881.1312614345.1312776349.1312777902.10; __utmz=260173902.1312777902.10.10.utmcsr=hardforum.ru|utmccn=(referral)|utmcmd=referral|utmcct=/t21005/; PHPSESSID=9c40d05e6e8246c6e5e37499c2072779; IP[1312778669]=82.192.95.28").
                header("Pragma", "no-cache").
                header("Cache-Control", "no-cache").
                header("Host", "2ip.ru").
//                header("", "").
//                header("", "").
                userAgent("Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0").
//                referrer().
                get();
        System.out.println(document.getElementsByTag("big"));
    }
}
